package com.kmis.entities;

import com.mybatisflex.annotation.*;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.sql.Timestamp;
import java.lang.Boolean;
import java.lang.String;
import java.lang.Integer;

/**
 * 部门实体类。
 *
 * @author MLB
 * @since 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "", description = "")
@Table(value = "tbl_department")
public class Department {

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @ColumnAlias("dep_id")
    @Id(keyType = KeyType.Auto)
    private Integer id;

    /**
     * 部门名称
     */
    @ApiModelProperty(value = "部门名称")
    @Column(value = "department_name")
    private String departmentName;

    /**
     * 部门封面
     */
    @ApiModelProperty(value = "部门封面")
    @Column(value = "cover")
    private String cover;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @Column(value = "remark")
    private String remark;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @Column(value = "create_time",onInsertValue = "now()")
    private Timestamp createTime;

    /**
     * 最后一次更新时间
     */
    @ApiModelProperty(value = "最后一次更新时间")
    @Column(value = "update_time",onUpdateValue = "now()")
    private Timestamp updateTime;


    /**
     * 逻辑删除字段（0表示未删除，1表示已删除）
     */
    @ApiModelProperty(value = "逻辑删除字段（0表示未删除，1表示已删除）")
    @Column(value = "del_flag",isLogicDelete = true)
    private Boolean delFlag;


}
